package com.work.crops.feign;

import com.work.crops.pojo.CropsDisease;
import com.work.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient("crops")
public  interface CropsDiseaseFeign {

    /**
     * @Author alin
     * @Date 15:06 2020/10/15
     * 根据农作物id查询病虫害数据
    **/
    @GetMapping("/cropsDisease/find/{id}")
    public Result<List<CropsDisease>> findByCropsId(@PathVariable("id") Long id);

}
